#ifndef __IIC__H
#define __IIC__H



#include <STC15F2K60S2.H>
#include <intrins.h>
void I2CStart(void);
void I2CStop(void);
void I2CSendByte(unsigned char byt);
unsigned char I2CReceiveByte(void);
unsigned char I2CWaitAck(void);
void I2CSendAck(unsigned char ackbit);

unsigned char  ADCRead(unsigned char  addr);
unsigned char  EEPRead(unsigned char  addr);
void EEPWrite(unsigned char  addr,unsigned char  dat);
#endif

